package com.tarena.lbs.user.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tarena.lbs.base.protocol.pager.PageResult;
import com.tarena.lbs.user.pojo.param.AdminParam;
import com.tarena.lbs.user.pojo.po.AdminPO;
import com.tarena.lbs.user.pojo.query.AdminQuery;
import com.tarena.lbs.user.pojo.vo.AdminVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminMapper extends BaseMapper<AdminPO> {
    AdminPO login(String phone);

    List<AdminVO> list(AdminQuery query);

    void save(AdminPO adminPO);

    Integer selectByBusinessId(Integer id);

    Integer selectByPhone(String accountPhone);

    Integer getType(Integer id);

    void admininsert(AdminPO adminPO);
}
